<xx-toolbar></xx-toolbar>

<md-content>
    <div layout="column" layout-align="center center">
        <form>
            <div layout="column" style="padding-top:100px;">
                <md-input-container class="md-block">
                    <!-- Use floating label instead of placeholder -->
                    <label>用户名</label>
                    <input ng-model="user.username" type="text" required>
                </md-input-container>
                <md-input-container class="md-block">
                    <label>密码</label>
                    <input ng-model="user.password" type="password" required>
                </md-input-container>
            </div>

            <div layout="row">
                <md-button ng-click="login(user)" class="md-raised md-primary" type="submit">登录</md-button>
                <md-button ng-click="register()" class="md-raised md-warn" type="submit">注册</md-button>
            </div>
        </form>
    </div>
    <br><br><br><br>
</md-content>
